﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace HRM.WFCLib
{
    public partial class frmConnectData : UserControl
    {
        private bool blnOption = false;

        public frmConnectData()
        {
            InitializeComponent();
        }

        private void frmConnectData_Load(object sender, EventArgs e)
        {

        }

        private void btnConnect_Click(object sender, EventArgs e)
        {

        }

        private void btnSave_Click(object sender, EventArgs e)
        {

        }

        private void btnExit_Click(object sender, EventArgs e)
        {

        }

        protected internal void btnOption_Click(object sender, EventArgs e)
        {
            try
            {
                if (!blnOption)
                {
                    btnOption.Text = "&Thu nhỏ";
                    this.Height = 320;
                    blnOption = true;
                }
                else
                {
                    btnOption.Text = "&Mở rộng";
                    this.Height = 260;
                    blnOption = false;
                }
            }
            catch
            {

            }
        }
    }
}
